Method and device for agile computing

ABSTRACT

A method for operating a group of nodes in a system for agile computing comprising a coordinator node and a first computation node communicating via a connection, and wherein the first computation node is adapted to perform a task for the coordinator node is provided. The method comprises the steps of: monitoring at least one operating parameter indicating the quality of the connection between the two nodes; determining a quality parameter based on the operating parameter, wherein the quality parameter indicates the quality of the connection between the two nodes; and transferring information from the first computation node to the coordinator node, when the value of the quality parameter falls within a transfer interval, wherein the information comprises information about a part of a task performed by the first computation node.

TECHNICAL FIELD

The present invention relates to the field of agile computing, in particular to a method, nodes and a system for agile computing.

BACKGROUND

In recent years increased effort has been done towards taking advantage of computation resources in a number of units that are connected in a network in order to increase the total computation capacity. Using the resources of many separate computers connected by a network, such as the Internet, to solve computation problems of large scale is often referred to as grid-computing.

Agile computing also refers to sharing of resources, however agile computing is directed towards a more dynamic and volatile environment with dynamically shifting resources and requirements compared to grid computing. Where grid computing is intended for large computational resources connected e.g. via a static network, agile computing is in particular targeted for use in a much more mobile environment with limited resources e.g. in the form of intermittent connections between units, limited power resources, low bandwidth connections, etc.

The article “Agile Computing: Bridging the Gap between Grid Computing and Ad-hoc Peer-to-Peer Resource Sharing” by Suri, Niranjan et. al., Proceedings of the 3^(rd) IEEE/ACM International Symposium on Cluster Computing and the Grid (CCGRID'03) discloses a system of hosts that are arranged in groups and adapted for agile computing.

Nodes in an agile computing environment group are often mobile units, which leads to the risk of breaking the connection between the nodes in the group.

SUMMARY

Due to the dynamic environment of an agile computing system, it has been recognised that computations partly performed by a node of a group may be lost due to the dynamic nature of an agile computing system. For example, if a connection between a computation node performing a task, e.g. computations, and the coordinator node of the group breaks before the computations are completed, then the already performed computations are lost. This means that the computation node has performed superfluous computation wasting time and resources, such as computation resources and battery power, both in the coordinator node and the computation node.

Thus, it is an object of the present invention to provide a method, nodes and a system for agile computing that improves the performance in a system for agile computing.

Accordingly, a method for operating a group of nodes in a system for agile computing comprising a coordinator node and a first computation node communicating via a connection, and wherein the first computation node is adapted to perform a task for the coordinator node, is provided. The method comprises the steps of:

-   -   monitoring at least one operating parameter indicating the         quality of the connection between the coordinator node and the         first computation node,     -   determining a quality parameter based on the operating         parameter, wherein the quality parameter indicates the quality         of the connection between the coordinator node and the first         computation node, and     -   transferring information from the first computation node to the         coordinator node, when the value of the quality parameter falls         within a transfer interval, wherein the information comprises         information about a part of a task performed by the first         computation node.

It is an important advantage of the present invention that agile computing is enabled to be used also in environments with a very high mobility where nodes enter and leave groups frequently which leads to frequent breaking of connections.

Furthermore, a computation node for agile computing is provided, the computation node being adapted to receive and perform a task from a coordinator node via a connection, comprising:

-   -   a monitor device adapted to monitor at least one operating         parameter indicating the quality of the connection between the         coordinator node and the computation node,     -   a calculator device adapted to determine a quality parameter         based on the at least one operating parameter, wherein the         quality parameter indicates the quality of the connection         between the coordinator node and the computation node, and     -   a transmitter device adapted to transfer information from the         computation node to the coordinator node, when the value of the         quality parameter falls within a transfer interval, wherein the         information comprises information about a part of the task         performed by the computation node.

Further in accordance with the present invention, a coordinator node for agile computing is provided, wherein the coordinator node is adapted to determine distribution of and distribute tasks to one or more computation nodes in a group, and is adapted to receive information about a part of a task distributed to a first computation node, e.g. when a quality parameter that is determined on basis of on one or more operating parameters falls within a transfer interval.

It is an important advantage of the present invention that the amount of redundant computations in a system for agile computing is reduced, which leads to a more efficient utilization of computation resources.

Further, it is an advantage of the present invention that the risk of deadlocks, e.g. where the coordinator node awaits information from a computation node that has disappeared, is reduced

BRIEF DESCRIPTION OF THE DRAWINGS

The above and other features and advantages of the present invention will become readily apparent to those skilled in the art by the following detailed description of exemplary embodiments thereof with reference to the accompanying drawings, wherein:

FIG. 1 illustrates an embodiment of a system for agile computing according to the invention,

FIG. 2 illustrates an embodiment of a system for agile computing according to the invention,

FIG. 3 is a flow chart of an embodiment of a method according to the present invention,

FIG. 4 is a flow chart of an embodiment of a method according to the present invention,

FIG. 5 is a flow chart of an embodiment of a method according to the present invention,

FIG. 6 schematically illustrates a computation node according to the present invention,

FIG. 7 schematically illustrates a coordinator node according to the present invention, and

FIG. 8 is a flow chart of an embodiment of a method according to the present invention

DETAILED DESCRIPTION OF THE INVENTION

The figures are schematic and simplified for clarity, and they merely show details which are essential to the understanding of the invention, while other details have been left out. Throughout, the same reference numerals are used for identical or corresponding parts or steps.

In a system for agile computing, coordinator node(s) and computation node(s) are arranged in one or more groups or zones, see e.g. FIGS. 1 and 2. A group in a system for agile computing may comprise any number of coordinator nodes, e.g. one, two, three, or more coordinator nodes. Furthermore, a group may comprise any number of computation nodes, e.g. one, two, three, or more computation nodes. The present invention relates in particular to the situation, where a node in a group in one way or another looses or is about to loose its connection with other nodes in the group.

The coordinator node is responsible for allocating and distributing tasks to other nodes, e.g. to one or more computation nodes or to other coordinator nodes. A task may include computations, such as data processing, and/or measurements of one or more physical quantities.

FIGS. 1 and 2 schematically illustrates embodiments of a system adapted for agile computing in accordance with the present invention.

In FIG. 1, the system for agile computing comprises a group 2 comprising at least one coordinator node including a first coordinator node COOR1, 10. The first coordinator node 10 is adapted for distributing tasks to at least one computation node in the group 2, wherein the at least one computation node including a first computation node COMP1, 12 and/or a second computation node COMP2, 14. In the illustrated embodiment, the first coordinator node 10 communicates with the first computation node 12 and the second computation node 14 via first and second connections 16, 18, respectively. In the illustrated embodiment, the first connection 16 and the second connection 18 are wireless. In an embodiment, the first connection 16 and/or the second connection 18 may be a wired connection.

FIG. 2 schematically illustrates a group 102 of a system for agile computing. The group 102 comprises at least one coordinator node including a first coordinator node COOR1, 10. In FIG. 2, the first coordinator node 10 is adapted for distributing tasks to at least one further coordinator node, wherein the at least one further coordinator node comprises a second coordinator node COOR2, 20 and/or a third coordinator node COOR3, 22, e.g. via connections 24, 26. The second coordinator node 20 distributes the tasks from the first coordinator node 10 to computing nodes COMP1, 12 and COMP2, 14 via connections 28, 30, respectively, and the third coordinator node 22 distributes the tasks from the first coordinator node 10 to computing nodes COMP2 and COMP3 via connections 32, 34, respectively. Optionally, the second coordinator node 20 and the third coordinator node 22 communicates via connection 36. The first coordinator node operates as a master coordinator node. In an embodiment, the first coordinator node 10 may also communicate with one or more computation nodes (not shown). In an embodiment, a coordinator node also operates as a computation node performing tasks.

Typically, nodes in a system for agile computing are mobile, such as mobile terminals or terminals mounted on mobile units, however nodes may also be stationary. Examples of devices that may be adapted to operate as a node in a system for agile computing include, but are not limited to: a computer, a mobile phone, a PDA, a GPS unit, a laptop or other portable devices. However, any device having computation resources that are not fully utilized may in principle be adapted for agile computing, such as devices with free computation resources or devices capable of performing a desired task e.g. in a car.

The connections between respective nodes in a system for agile computing may be wired, wireless or a combination thereof. A number of protocols may be used for communication between nodes, e.g. the Bluetooth protocol, Internet Protocol, WIFI, LAN-protocols, etc. Accordingly, the nodes of a system for agile computing are adapted for communicating with other nodes of the system in order to communicate data, software, and other information to other nodes of the system.

A system for agile computing is described in “Towards an Agile Computing Approach to Dynamic and Adaptive Service-Oriented Architectures” by Suri, Niranjan et. al., 1^(st) IEEE Workshop on Autonomic Communications and Network Management (ACNM'07), page 25-31, May 2007.

Further it is an advantage of the present invention that a coordinator node is enabled to distribute tasks in a more efficient way both with regard to time and computation power.

In the method according to the present invention, the step of monitoring at least one operating parameter may comprise measuring the signal strength of a signal between the coordinator node and a computation node in the system. The signal strength of any signal from the coordinator node may constitute an operating parameter, such as the signal strength of a pilot channel, signal strength of data signals to the first computation node or other nodes or the like.

The at least one operating parameter may in an embodiment include the battery power of the first computation node and/or the coordinator node. Additionally or alternatively, the at least one operating parameter may include other parameters, e.g. noise level for calculating the signal to noise ratio.

The quality parameter may be determined or calculated based on one or a plurality of operating parameters, e.g. one or more sampled values of one or more operating parameters at different points of time. This can be expressed as: Q=f(O _(i,k)), where Q is the quality parameter and O_(i,k) is the value of the i'th operating parameter at time k.

In an embodiment of the invention, the step of determining the quality parameter comprises determining the quality parameter based on the signal-to-noise ratio of a signal between the coordinator node and the first computation node.

Preferably, the step of transferring information is performed when the value of the quality parameter falls below a transfer threshold value T_(transfer), i.e. when Q<T_(transfer).

Before a task is initiated on a computation node, the coordinator node and/or the computation node may be adapted to evaluate the quality of the connection and decide whether to distribute a task based on that evaluation. Accordingly, the method may comprise the step of:

-   -   distributing the task to the first computation node only when         the quality parameter is at or above an initiation threshold         value T_(initiate).

The step of distributing the task may be performed prior to the step of monitoring at least one operating parameter, i.e. when Q≧T_(initiate).

Usually, a computation node continues a task until completed. However, due to the limited calculation or power resources of a computation node and in order to avoid waste of power and other resources it may be desirable to be able to stop an ongoing task in the computation node if the connection between the coordinator node and the computation node is broken. On the other hand, it may be desired to continue the task in order to complete the task in case the computation node will be able to send the result to the coordinator node via an alternative or the same connection at a later time.

After the step of transferring information, and/or if the computation node realizes that the step of transferring information has not been completed, e.g. due to a broken connection, and/or if the connection between the coordinator node and the computation node has disappeared, it may be decided whether the computation node should stop or continue performing the remaining part of the task. Accordingly, the method may further comprise the step of:

-   -   deciding whether the first computation node should stop or         continue performing the task after the step of transferring         information about the performed part of the task.

By enabling the computation node to stop a task, the method according to the invention hereby provides a better utilization of resources in a system for agile computing by avoiding superfluous computations in a computation node thereby saving limited resources of that node.

In a preferred embodiment, the value of the quality parameter depends on the quality of the connection between the coordinator node and the computation node. If the connection between the coordinator node and the computation node is poor, it may be desirable to have alternative routes of communication between the two. Accordingly, the method may further comprise the step of:

-   -   attempting to set up an alternative connection between the         coordinator node and the first computation node, e.g. when the         value of the quality parameter falls within a setup interval.

The step of attempting to set up an alternative connection may be performed when the value of the quality parameter falls below a setup threshold value T_(setup), i.e. when Q<T_(setup).

The transfer interval and the setup interval may be set and/or changed by the coordinator node and/or the first computation node.

The alternative connection between the coordinator node and the first computation node may be a connection via a further computation node and/or a further coordinator node in the group.

When the coordinator node receives information from the first computation node about the part of a task performed by the first computation node, the remaining part of the task may be redistributed in order to ensure completion of the task.

Accordingly, the method may comprise the steps of:

-   -   the coordinator node determining the distribution of the         remaining part of the task of the first computation node based         on information from the first computation node, and     -   the coordinator node distributing the remaining part of the task         of the first computation node to at least one computation node         in the group.

The remaining part of the task may be redistributed to the first computation node if a connection has been restored or still exists and/or to other computation nodes in the group. Redistribution of the remaining part of the task to the first computation node may be determined on basis of the value of a quality parameter, e.g. the remaining part of the task may be redistributed to the first coordinator node if Q≧T_(initiate).

Preferably, monitoring of the at least one operating parameter is performed by the first computation node, however a coordinator node may additionally or alternatively also monitor at least one operating parameter.

The information transferred in the step of transferring information may comprise information regarding the value of the quality parameter and/or information that the value of the quality parameter has fallen within the transfer interval.

FIG. 3 illustrates an embodiment of a method according to the invention. The method comprises the step 108 of distributing a task to the first computation node. The method further comprises the step 110 of monitoring at least one operating parameter. In step 110, the signal strength of a signal from the coordinator node is measured in order to calculate a quality parameter in step 112. If the quality parameter falls within the transfer interval, the method proceeds to step 114, where information is transferred from the first computation node to the coordinator about a part of a task performed by the first computation node, in order to at least try to avoid loss of already performed part of the task. Otherwise, the method returns to monitoring of the at least one operating parameter. The information transferred in step 114 may additionally comprise information about the value of the quality parameter. After transfer in step 114, the method proceeds to step 116, where the coordinator node evaluates the information transferred from the first computation node and based on that redistributes the remaining part of the task for completion by computation nodes in the group. The remaining task may be redistributed to the first computation node or to other computation nodes in the group. Preferably, steps 110 and 112 are performed in the first computation node. In an embodiment of the method according to the present invention, steps 110 and 112 are performed in the coordinator node, thus requiring the coordinator node to send a request for transfer of information to the first computation node in step 114.

FIG. 4 illustrates a further embodiment of a method according to the present invention. In the illustrated embodiment, the method proceeds to step 118 after step 114, where information about the performed part of the task is transferred. Step 118 comprises the step of deciding whether the first computation node should stop or continue performing the task. This decision may be based on the quality parameter value. Alternatively or in addition, the decision may be based on if the transfer in step 114 was complete, or interrupted. If the task is continued, the method optionally proceeds to step 120, wherein the coordinator node, if the decision in step 118 is taken by the first computation node, is informed that the first computation node continues the task before returning to step 110.

In an embodiment of the present invention, the step of deciding whether to stop or continue performing the task after the step of transferring information about the performed part of the task comprises selecting a calculation scheme from a plurality of calculation schemes, e.g. based on the actual value of the quality parameter.

FIG. 5 illustrates a further embodiment of a method according to the invention. In addition to the steps earlier explained in connection with FIG. 4, the method further comprises the step 124 of attempting to set up an alternative connection between the coordinator node and the first computation node, e.g. the first computation node 12 sends a request towards the coordinator node 10. The step 124 of attempting to set up an alternative connection may depend on whether the value of the quality parameter Q is within a setup interval as illustrated by optional step 126. In addition or alternatively, the step 124 of attempting to set up an alternative connection may depend on current capacities and capabilities of the computation node, e.g. battery level, other work load, memory status and the like. In step 120, the first computation node continues the task and optionally informs the coordinator node accordingly.

In the illustrated embodiment, the step 124 of attempting to set up an alternative connection between the coordinator node and the first computation node includes attempting to set up a new connection between the coordinator node and the first computation node if the quality parameter indicates that the connection between the coordinator node and the computation node, e.g. the first connection 16, is broken.

The alternative connection between the coordinator node and the first computation node may be a connection via one or more other nodes in the system, e.g. a second computation node in the same group and/or a second coordinator node in the same or a different group.

In the computation node according to the present invention, the monitor device may be adapted for measuring the signal strength of one or more signals between the coordinator node and the computation node. In an embodiment, the monitor device is adapted for measuring the signal strength of a signal from the coordinator node, which signal indicates presence of the coordinator node.

The quality parameter Q may be determined by the computation node or following a more centralized approach the quality parameter may be determined by the coordinator. The quality parameter may be determined or calculated based on one or a plurality of operating parameter. In an embodiment of the computation node, the calculator device may be adapted for determining the quality parameter based on the signal-to-noise ratio of a signal between the coordinator node and the computation node.

The transmitter device of the computation node may be adapted to transfer information to the coordinator node when the value of the quality parameter falls below a transfer threshold value, i.e. if Q<T_(Transfer). The transmitter device may comprise a transceiver.

In an embodiment of the computation node, the quality parameter is calculated as the signal-to-noise ratio of a signal from the coordinator node.

Further, the computation node may be adapted to decide whether to stop or continue performing the task after transferring information about the performed part of the task. The decision may be based on the value of the quality parameter, which may indicate that no connection is available between the computation node and the coordinator node, e.g. by having the value zero.

Furthermore, the computation node may be adapted for attempting to set up an alternative connection between the coordinator node and the computation node, when the value of the quality parameter falls within a setup interval, e.g. when the quality parameter Q equals or falls below a setup threshold value.

The computation node may be adapted to transfer information to the coordinator node, wherein the information comprises information indicating that the value of the quality parameter has fallen within the transfer interval, e.g. that the signal to noise ratio for the connection between the computation node and the coordinator node has fallen below a transfer threshold T_(transfer).

FIG. 6 schematically illustrates an embodiment of a computation node for agile computing according to the invention, e.g. a first computation node for use in the method according to the present invention. The computation node 12 is adapted to receive and perform a task from a coordinator node, e.g. coordinator node 10, via a connection, e.g. the first connection 16. The computation node 12 comprises a monitor device 202 adapted to monitor an operating parameter, e.g. the signal strength of a signal from the coordinator node, indicating the quality of the connection 16, and a calculator device 204 adapted to determine the signal-to-noise ratio as a quality parameter based on the measured signal strength. Furthermore, the computation node 12 comprises a transmitter device 206 adapted to transfer information from the computation node 12 to the coordinator node 10, when the value of signal-to-noise-ratio falls below a transfer threshold value. The transferred information comprises information about a part of the task performed by the computation node 12. The devices 202, 204, 206 are interconnected via wires 208.

Furthermore, the computation node 12 is adapted to decide whether to stop or continue performing the task upon transfer of the information. The decision is based on the value of the quality parameter, which is frequently updated, e.g. each 2 seconds.

Additionally, the computation node 12 is adapted for attempting to set up an alternative connection between the coordinator node 10 and the computation node 12 via another node in the group, e.g. the second computation node 14, when the value of the quality parameter falls below a setup threshold value.

A coordinator node according to the invention may be adapted to determine the distribution of the remaining part of the task of the first computation node based on information from the first computation node. Further, the coordinator node may be adapted to redistribute the remaining part of the task or the full task of the first computation node to at least one computation node in the group, e.g. to the first computation node if the connection is still of sufficient quality or has been restored, or to a second computation node having available capacity.

FIG. 7 schematically illustrates a coordinator node 10 according to the present invention. The coordinator node 10 comprises a processor 302 and a transceiver device 304 interconnected by a wire 306. The processor 302 is adapted to determine distribution of and distribute tasks to one or more computation nodes in a group. Furthermore, the coordinator node 10 comprises a transceiver device 304 that is adapted to receive information from a first computation node 12 about a part of a task distributed to the first computation node when a quality parameter that is determined on basis of on one or more operating parameters falls within a transfer interval.

Furthermore, the coordinator node 10 is adapted to determine the distribution of the remaining part of the task from the first computation node based on information from the first computation node, and by means of the transceiver device 304 adapted to distribute the remaining part of the task of the first computation node to at least one computation node in the group.

In an embodiment of the present invention, the first computation node continues performing the task for a predefined time period before attempting to reconnect the coordinator node and the first computation node either directly or via one or more other nodes. Such an embodiment is illustrated in FIG. 8, wherein the method in addition to the steps of the exemplary method in FIG. 5 further comprises the step 130 of continuing the task for a predefined period of time, e.g. for a period larger than 10 seconds, such as from about 10 seconds to about 10 minutes. The predefined time period may have a predefined length, such as about 30 seconds, 1 minute, 3 minutes, or 5 minutes. The length of the time period may depend on the value of the quality parameter.

It should be noted that in addition to the exemplary embodiments of the invention shown in the accompanying drawings, the invention may be embodied in different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the invention to those skilled in the art. 

1. A method for operating a group of nodes in a system for agile computing comprising a coordinator node and a first computation node communicating via a connection, the first computation node performing a task for the coordinator node, the method comprising the steps of: monitoring at least one operating parameter indicating the quality of the connection between the coordinator node and the first computation node, determining a quality parameter based on the operating parameter, wherein the quality parameter indicates the quality of the connection between the coordinator node and the first computation node, transferring information from the first computation node to the coordinator node, when the value of the quality parameter falls within a transfer interval, wherein the information comprises information about a part of a task performed by the first computation node; and deciding whether the first computation node should stop or continue performing the task after the step of transferring information about the performed part of the task.
 2. The method according to claim 1, wherein the step of monitoring at least one operating parameter comprises measuring the signal strength of a signal between the coordinator node and the first computation node.
 3. The method according claim 1, wherein the step of determining a quality parameter comprises determining the quality parameter based on the signal-to-noise ratio of a signal between the coordinator node and the first computation node.
 4. The method according to claim 1, wherein the step of transferring information is performed when the value of the quality parameter falls below a transfer threshold value.
 5. The method according to claim 1, wherein the method prior to the step of monitoring at least one operating parameter further comprises the step of distributing the task to the first computation node only when the quality parameter is at or above an initiation threshold value.
 6. The method according to claim 1, further comprising the step of attempting to set up an alternative connection between the coordinator node and the first computation node.
 7. The method according to claim 1, further comprising the steps of: the coordinator node determining the distribution of the remaining part of the task of the first computation node based on information from the first computation node, and the coordinator node distributing the remaining part of the task of the first computation node to at least one computation node in the group.
 8. The method according to claim 1, wherein the step of monitoring at least one operating parameter is performed by the first computation node, and the information transferred in the step of transferring information comprises information that the value of the quality parameter has fallen within the transfer interval.
 9. A coordinator node for agile computing, wherein the coordinator node is arranged for determining distribution of tasks and distributing the tasks to one or more computation nodes in a group, and is further arranged to receive information about a part of a task distributed to a first computation node when a quality parameter that is determined whether one or more operating parameters falls within a transfer interval, the first computation node being arranged for deciding whether to stop or continue performing the task after transferring information about the performed part of the task.
 10. The coordinator node according to claim 9, wherein the coordinator node is further adapted to determine the distribution of the remaining part of the task of the first computation node based on information from the first computation node, and arranged to distribute the remaining part of the task of the first computation node to at least one computation node in the group.
 11. The system according to claim 9, wherein the coordinator node is further arranged to determine the distribution of the remaining part of the task of the first computation node based on information from the first computation node, and arranged to distribute the remaining part of the task of the first computation node to at least one computation node in the group.
 12. A system for agile computing, the system comprising: one or more computation nodes, wherein a computation node is for receiving and performing a task from a coordinator node via a connection, the computation node comprising: a monitor device for monitoring at least one operating parameter indicating the quality of the connection between the coordinator node and the at least one computation node, a calculator device for determining a quality parameter based on the at least one operating parameter, wherein the quality parameter indicates the quality of the connection between the coordinator node and the computation node, and a transmitter device for transferring information from the computation node to the coordinator node when the value of the quality parameter falls within a transfer interval, the information comprising information about a part of the task performed by the computation node; and the coordinator node for determining distribution of tasks and distributing the tasks to the one or more computation nodes in a group, and is further arranged to receive information about a part of a task distributed to a first computation node when a quality parameter that is determined whether one or more operating parameters falls within a transfer interval, wherein the first computation node is arranged for deciding whether to stop or continue performing the task after transferring information about the performed part of the task.
 13. The system according to claim 12, wherein the information about a part of the task performed by the computation node comprises information that the value of the quality parameter has fallen within the transfer interval.
 14. The system according to claim 12, wherein the monitor device is arranged for measuring the signal strength of a signal between the coordinator node and the computation node; the calculator device is arranged for determining the quality parameter based on the signal-to-noise ratio of a signal between the coordinator node and the computation node; and the transmitter device is arranged for transferring information to the coordinator node when the value of the quality parameter falls below a transfer threshold value.
 15. The system according to claim 12, wherein the computation node is arranged for setting up an alternative connection between the coordinator node and the computation node, when the value of the quality parameter falls within a setup interval. 